﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(ts_goodsMetadata))]//使用ts_goodsMetadata对ts_goods进行数据验证
    public partial class ts_goods : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        [ScaffoldColumn(true)]
        [Display(Name = "日期", Order = 2)]
        public string dt_dt { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "期初数量", Order = 2)] 
        public string QCSL { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "期初金额", Order = 2)]
        public string QCJE { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "入库数量", Order = 2)]
        public string RKSL { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "入库金额", Order = 2)]
        public string RKJE { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "出库数量", Order = 2)]
        public string CKSL { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "出库金额", Order = 2)]
        public string CKJE { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "损溢数量", Order = 2)]
        public string SYSL { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "损溢金额", Order = 2)]
        public string SYJE { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "期末数量", Order = 2)]
        public string QMSL { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "期末金额", Order = 2)]
        public string QMJE { get; set; }

        #endregion

    }
    public class ts_goodsMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "Id", Order = 1)]
			public object Id { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "编号", Order = 2)]
			[StringLength(15, ErrorMessage = "长度不可超过15")]
			public object c_code { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "物品", Order = 3)]
			[StringLength(40, ErrorMessage = "长度不可超过40")]
			public object c_desc { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "规格", Order = 4)]
			[StringLength(40, ErrorMessage = "长度不可超过40")]
			public object c_model { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "单位", Order = 5)]
			[StringLength(8, ErrorMessage = "长度不可超过8")]
			public object c_unit { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "类别", Order = 6)]
			[StringLength(30, ErrorMessage = "长度不可超过30")]
			public object c_class { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "所属大类", Order = 7)]
			[StringLength(30, ErrorMessage = "长度不可超过30")]
			public object c_class1 { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "主供应商", Order = 8)]
			[StringLength(10, ErrorMessage = "长度不可超过10")]
			public object c_vendor { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "专用仓库", Order = 9)]
			[StringLength(20, ErrorMessage = "长度不可超过20")]
			public object c_base { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "最近进价", Order = 10)]
			public object f_pricelast { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "库存上限", Order = 11)]
			public object f_upper { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "库存下限", Order = 12)]
			public object f_lower { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "拼音", Order = 13)]
			[StringLength(10, ErrorMessage = "长度不可超过10")]
			public object c_py { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "备注", Order = 14)]
			[StringLength(50, ErrorMessage = "长度不可超过50")]
			public object c_comment { get; set; }

            [ScaffoldColumn(true)]
            [Display(Name = "状态", Order = 15)]
            [StringLength(10, ErrorMessage = "长度不可超过10")]
            public object i_sign { get; set; }

    }


}

